<?php
if(is_file($_SERVER['DOCUMENT_ROOT'].'/safe/webscan.php')){
   require_once($_SERVER['DOCUMENT_ROOT'].'/safe/webscan.php');
}
/* 应用根目录 */
define('APP_ROOT', dirname(__FILE__));   //该常量只在后台使用
define('ROOT_PATH', dirname(APP_ROOT));  //该常量是ECCore要求的
include(ROOT_PATH . '/eccore/lcjmall.php');

/* 定义配置信息 */
ecm_define(ROOT_PATH . '/data/config.inc.php');

/* 启动ECMall */
LcjMall::startup(array(
    'default_app'   =>  'default',
    'default_act'   =>  'index',
    'app_root'      =>  APP_ROOT . '/app',
    'external_libs' =>  array(
        ROOT_PATH . '/includes/global.lib.php',
        ROOT_PATH . '/includes/libraries/time.lib.php',
        ROOT_PATH . '/includes/ecapp.base.php',
		APP_ROOT . '/app/backend.base.php',
    ),
));
?>